package com.wuyou.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘棋城
 * @since 2022-09-30
 */
@TableName("tb_user")
@ApiModel(value = "User对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(" id ")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("姓名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机号")
    private String userPhone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("盐")
    private String salt;

    @ApiModelProperty("身份证")
    @TableField("cardID")
    private String cardID;

    @ApiModelProperty("性别")
    private Integer sex;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date creatTime;

    @ApiModelProperty("职业")
    private String job;

    @ApiModelProperty("收藏id")
    private Long collectId;

    @ApiModelProperty("身份(是否房东0)")
    private Integer isHost;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("最后登录时间")
    private Date lastTime;

    @ApiModelProperty("备用字段1")
    private String spare1;

    @ApiModelProperty("备用字段2")
    private String spare2;

}
